<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./libs/vue.min.js"></script>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.css" rel="stylesheet">
</head>
<body>
    
    <div class="container" id="two">
        
        <div class="panel panel-default">
            <div class="panel-body">
                Vue的简单deom
            </div>
        </div>
        
        <legend>双向绑定</legend>
    
        <div class="form-group">
            <label for="">姓名</label>
            <input type="text" class="form-control" v-model="name" placeholder="Input field">
        </div> 
        <div class="panel panel-default">
            <div class="panel-body" id="getNum">
                {{name}}
            </div>
        </div>

    </div>
    
    <script>
        new Vue({
            el: '#two',
            data() {
                return {
                    name : ''
                }
            }
        })
    </script>
</body>
</html>